package cm.iccsoft.android.telecomcost.entities;

public enum TimePeriod {
	HOUR(1),DAY(2),WEEK(3),MONTH(4);
	
	private final int index;   

	TimePeriod(int index) {
        this.index = index;
    }

    public int index() { 
        return index; 
    }

	@Override
	public String toString() {
		switch(index)
		{
		case 1:
			return "Hour";
		case 2:
			return "Daily";
		case 3:
			return "Weekly";
		case 4:
			return "Monthly";
			default:
				throw new IndexOutOfBoundsException();
		}
	}
}
